<html>
<head><meta charset="utf-8"><title>cargo error · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20error.html">cargo error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="224652401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20error/near/224652401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nahua <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20error.html#224652401">(Jan 31 2021 at 16:18)</a>:</h4>
<p>I just merged <code>master</code> branch from Rust-Clippy's to my local branch and suddenly I cannot use <code>cargo</code> anymore:</p>
<div class="codehilite"><pre><span></span><code>error: the &#39;cargo&#39; binary, normally provided by the &#39;cargo&#39; component, is not applicable to the &#39;nightly-2021-01-30-x86_64-unknown-linux-gnu&#39; toolchain
</code></pre></div>
<p>And <code>rustup default nightly</code> outputs the following:</p>
<div class="codehilite"><pre><span></span><code>rustup default nightly
info: using existing install for &#39;nightly-x86_64-unknown-linux-gnu&#39;
info: default toolchain set to &#39;nightly-x86_64-unknown-linux-gnu&#39;

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.51.0-nightly (04caa632d 2021-01-30)

info: note that the toolchain &#39;nightly-2021-01-30-x86_64-unknown-linux-gnu&#39; is currently in use (overridden by &#39;/home/nahua/projects/rust/rust-clippy/rust-toolchain&#39;)
</code></pre></div>
<p>Does anyone know how to fix this issue? Thanks!</p>



<a name="224652969"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20error/near/224652969" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nahua <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20error.html#224652969">(Jan 31 2021 at 16:34)</a>:</h4>
<p>Solved:<br>
<code>rustup toolchain uninstall nightly-2021-01-30</code>, <code>cargo +nightly clean</code>, <code>cargo build</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>